<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<LINK rel="stylesheet" type="text/css"
	href="<c:url value="/design.css"/>">
<link rel="icon" type="image/png"
	href="<c:url value="/pics/design/favicon.ico"/>" />
<title>Recherche de <c:out value="${affichage.search}" /> -
	Nerd Shop
</title>
</head>

<jsp:include page="/header.jsp" />
<body>
	<div id="results">
		<h1>
			résultats trouvés pour "
			<c:out value="${affichage.search}" />
			"
		</h1>
		<c:if test="${empty affichage.articles}">
			<p>aucun article ne correspond à votre recherche.</p>
		</c:if>
		<c:if test="${!empty affichage.articles}">
			<div id="articles">
				<c:forEach var="article" items="${affichage.articles}">
					<div class="article_large">
						<table id="tab_articles">
							<tr>
								<td rowspan="2" class="article_large_pic"><a
									href="<c:url value="/article"/>?id=<c:out value="${article.id}"/>">
										<img
										src="<c:url value="/pics/articles/"/>pic<c:out value="${article.id}"/>.jpg"
										alt="photo de <c:out value="${article.nom}"/>" />
								</a></td>
								<td class="article_large_text"><h3>
										<a
											href="<c:url value="/article"/>?id=<c:out value="${article.id}"/>">
											<c:out value="${article.nom}" />
										</a>
									</h3></td>
								<td rowspan="2" class="article_large_prix"><c:out
										value="${article.prix}" />&euro;</td>
							</tr>
							<tr>
								<td><c:out value="${article.description}" /></td>
							</tr>
						</table>
					</div>
				</c:forEach>
			</div>
		</c:if>
	</div>
</body>
<jsp:include page="/footer.jsp" />

</html>